﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ServeurRSS_1_0.Source.Model;


namespace ServeurRSS_1_0
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IDirectoryService" in both code and config file together.
    [ServiceContract]
//   [AspNetCompatibilityRequirements(
//              RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public interface IServiceDirectoryManagement
    {
        [OperationContract]
        string createDirectory(System.Guid userId, DataDirectory newDir, DataDirectory parent = null);

        [OperationContract]
        string eraseDirectory(System.Guid dir, System.Guid user);

        [OperationContract]
        RssTree getDirectoriesUser(System.Guid idUser);

        [OperationContract]
        RssTree moveDirectoy(System.Guid newParent, System.Guid dir);

        [OperationContract]
        Guid getRootDirectoryId(Guid idUser);
    }
    
}
